import axios from "../utils/http"
import store from "../store"
//mock
export function reqMockfetchPermission(){
    return axios.get("/api/permission?user=" + store.state.UserToken);
}

export function reqMocklogin(user){
    return axios.get("/api/login?user=" + user)
}



//api
export const reqlogin=(user)=>{
    console.log("666")
    return axios.post("/api/login",user)
}
 
export const reqfetchPermission=()=>{
    return axios.get("/api/permission?userType=admin")
}